package com.party.dto;

/**
 * 
 * @author Caizhf
 * @date 2017年8月1日上午1:11:31
 * @version v.0.1
 * @email 1115054416@qq.com
 *
 *        <p>
 * 		Description: 此对象专门用来记录计算金额
 *        </p>
 *
 */
public class CountAmountDTO {

	private double totalAmount; 					// 最后结算的总价
	private double siteTotalAmount; 				// 场地总价
	private double talentServiceTotalAmount; 		// 达人服务的总价
	private double caterTotalAmount; 				// 餐饮总价
	private double busTotalAmount; 					// 包车总价
	private double setMealTotalAmount; 				// 套餐总价
	private double decorationProductTotalAmount;	// 场地布置下的商品总价

	private double couponToalReduce; 				// 优惠券需要减去的总价

	public CountAmountDTO() {
		super();
	}
	
	public double getPayNeed(){
		// 总价等于原总价减去优惠的价格
		totalAmount -= couponToalReduce;
		return totalAmount;
	}

	public CountAmountDTO(double totalAmount, double couponToalReduce) {
		this.totalAmount = totalAmount;
		this.couponToalReduce = couponToalReduce;
	}
	
	//排除套餐外的总价
	public double countAllProduct(){
		return siteTotalAmount+talentServiceTotalAmount+caterTotalAmount+busTotalAmount+decorationProductTotalAmount;
	}

	public double getDecorationProductTotalAmount() {
		return decorationProductTotalAmount;
	}

	public CountAmountDTO setDecorationProductTotalAmount(double decorationProductTotalAmount) {
		this.decorationProductTotalAmount = decorationProductTotalAmount;
		return this;
	}

	public double getTalentServiceTotalAmount() {
		return talentServiceTotalAmount;
	}

	public CountAmountDTO setTalentServiceTotalAmount(double talentServiceTotalAmount) {
		this.talentServiceTotalAmount = talentServiceTotalAmount;
		return this;
	}

	public double getCaterTotalAmount() {
		return caterTotalAmount;
	}

	public CountAmountDTO setCaterTotalAmount(double caterTotalAmount) {
		this.caterTotalAmount = caterTotalAmount;
		return this;
	}

	public double getBusTotalAmount() {
		return busTotalAmount;
	}

	public CountAmountDTO setBusTotalAmount(double busTotalAmount) {
		this.busTotalAmount = busTotalAmount;
		return this;
	}

	public double getTotalAmount() {
		return totalAmount;
	}

	public CountAmountDTO setTotalAmount(double totalAmount) {
		this.totalAmount = totalAmount;
		return this;
	}

	public double getSiteTotalAmount() {
		return siteTotalAmount;
	}

	public CountAmountDTO setSiteTotalAmount(double siteTotalAmount) {
		this.siteTotalAmount += siteTotalAmount;
		return this;
	}

	public double getSetMealTotalAmount() {
		return setMealTotalAmount;
	}

	public CountAmountDTO setSetMealTotalAmount(double setMealTotalAmount) {
		this.setMealTotalAmount = setMealTotalAmount;
		return this;
	}

	public double getCouponToalReduce() {
		return couponToalReduce;
	}

	public CountAmountDTO setCouponToalReduce(double couponToalReduce) {
		this.couponToalReduce = couponToalReduce;
		return this;
	}

	public CountAmountDTO addSiteAmount(double siteAmount) {
		this.siteTotalAmount += siteAmount;
		return this;
	}

	public CountAmountDTO addSetMealAmount(double setMealAmount) {
		this.setMealTotalAmount += setMealAmount;
		return this;
	}

	public CountAmountDTO addDecorationProductAmount(double decorationProductAmount) {
		this.decorationProductTotalAmount += decorationProductAmount;
		return this;
	}

	public CountAmountDTO addCouponAmount(double couponAmount) {
		this.couponToalReduce += couponAmount;
		return this;
	}

	public CountAmountDTO addTalentServiceAmount(double talentAmount) {
		this.talentServiceTotalAmount += talentAmount;
		return this;
	}

	public CountAmountDTO addCaterAmount(double caterAmount) {
		this.caterTotalAmount += caterAmount;
		return this;
	}

	public CountAmountDTO addBusAmount(double busAmount) {
		this.busTotalAmount += busAmount;
		return this;
	}

	@Override
	public String toString() {
		return "CountAmountDTO [totalAmount=" + totalAmount + ", siteTotalAmount=" + siteTotalAmount
				+ ", talentServiceTotalAmount=" + talentServiceTotalAmount + ", caterTotalAmount=" + caterTotalAmount
				+ ", busTotalAmount=" + busTotalAmount + ", setMealTotalAmount=" + setMealTotalAmount
				+ ", decorationProductTotalAmount=" + decorationProductTotalAmount + ", couponToalReduce="
				+ couponToalReduce + "]";
	}
	
	
}
